home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / imglib2 / imgILoad.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  124 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM imgILoad.idl
  3.  */
  4.  
  5. #ifndef __gen_imgILoad_h__
  6. #define __gen_imgILoad_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class imgIContainer; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    imgILoad */
  21. #define IMGILOAD_IID_STR "e6273acc-1dd1-11b2-a08b-824ad1b1628d"
  22.  
  23. #define IMGILOAD_IID \
  24.   {0xe6273acc, 0x1dd1, 0x11b2, \
  25.     { 0xa0, 0x8b, 0x82, 0x4a, 0xd1, 0xb1, 0x62, 0x8d }}
  26.  
  27. /**
  28.  * imgILoad interface
  29.  *
  30.  * @author Stuart Parmenter <pavlov@netscape.com>
  31.  * @version 0.1
  32.  * @see imagelib2
  33.  */
  34. class NS_NO_VTABLE imgILoad : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(IMGILOAD_IID)
  38.  
  39.   /**
  40.    * the image container...
  41.    * @return the image object associated with the request.
  42.    * @attention NEED DOCS
  43.    */
  44.   /* attribute imgIContainer image; */
  45.   NS_IMETHOD GetImage(imgIContainer * *aImage) = 0;
  46.   NS_IMETHOD SetImage(imgIContainer * aImage) = 0;
  47.  
  48.   /* readonly attribute PRBool isMultiPartChannel; */
  49.   NS_IMETHOD GetIsMultiPartChannel(PRBool *aIsMultiPartChannel) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_IMGILOAD \
  55.   NS_IMETHOD GetImage(imgIContainer * *aImage); \
  56.   NS_IMETHOD SetImage(imgIContainer * aImage); \
  57.   NS_IMETHOD GetIsMultiPartChannel(PRBool *aIsMultiPartChannel); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_IMGILOAD(_to) \
  61.   NS_IMETHOD GetImage(imgIContainer * *aImage) { return _to GetImage(aImage); } \
  62.   NS_IMETHOD SetImage(imgIContainer * aImage) { return _to SetImage(aImage); } \
  63.   NS_IMETHOD GetIsMultiPartChannel(PRBool *aIsMultiPartChannel) { return _to GetIsMultiPartChannel(aIsMultiPartChannel); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_IMGILOAD(_to) \
  67.   NS_IMETHOD GetImage(imgIContainer * *aImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImage(aImage); } \
  68.   NS_IMETHOD SetImage(imgIContainer * aImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImage(aImage); } \
  69.   NS_IMETHOD GetIsMultiPartChannel(PRBool *aIsMultiPartChannel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMultiPartChannel(aIsMultiPartChannel); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class _MYCLASS_ : public imgILoad
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_IMGILOAD
  80.  
  81.   _MYCLASS_();
  82.  
  83. private:
  84.   ~_MYCLASS_();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(_MYCLASS_, imgILoad)
  92.  
  93. _MYCLASS_::_MYCLASS_()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. _MYCLASS_::~_MYCLASS_()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* attribute imgIContainer image; */
  104. NS_IMETHODIMP _MYCLASS_::GetImage(imgIContainer * *aImage)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108. NS_IMETHODIMP _MYCLASS_::SetImage(imgIContainer * aImage)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* readonly attribute PRBool isMultiPartChannel; */
  114. NS_IMETHODIMP _MYCLASS_::GetIsMultiPartChannel(PRBool *aIsMultiPartChannel)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* End of implementation class template. */
  120. #endif
  121.  
  122.  
  123. #endif /* __gen_imgILoad_h__ */
  124.